home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / biz / haage / WarpUP_V31.lha / WarpUP Install-Script < prev    next >
Text File  |  1998-08-11  |  27KB  |  767 lines

  1. ;*************************************************************************
  2. ;*  WarpUP CD-Installer Version 14   15 April 1998                       *
  3. ;*                                                                       *
  4. ;*  ©1998 HAAGE & PARTNER Computer GmbH                                  *
  5. ;*                                                                       *
  6. ;*  If you have any installer questions please let us know!              *
  7. ;*                                                                       *
  8. ;*  Corrections from Pieter Frenssen                                     *
  9. ;*************************************************************************
  10. ;
  11. ; $VER: WarpUP V14.6 Install Version 2.1 (09.08.98)
  12.  
  13. (complete 0)
  14.  
  15. ; Die Versionsnummer und das Erstellungs-Datum der hier installierten
  16. ; Versionen.
  17.  
  18. (set #warpup-version "Version 14.6")
  19. (set #warpup-date "(16.07.98)")
  20.  
  21. ; // Die Dateigrößen
  22.  
  23. (set #size-komplett 4) ; MByte CD-Installation
  24.  
  25. ;====================================================================
  26. ; Initialisierungen
  27.  
  28. ; --- English strings ---
  29.  
  30.     (set #yeskey "Yes")
  31.     (set #nokey "No")
  32.  
  33.     (set #wrongos "\n Sorry, you will need OS2.04 or better\n")
  34.  
  35.     (set #wrongcpu "\n Sorry, you will need min. a 68020 CPU to use StormC\n")
  36.  
  37.     (set #welcome (cat "\n\n"
  38.         "Welcome to the installation of the new\n\n"
  39.         "PowerPC native exec kernel WarpUP-WarpOS.\n\n"
  40.         ""#warpup-version " of "#warpup-date"\n\n"
  41.         "This script copies the WarpUP-Libraries\n"
  42.         "to your harddisk!\n\n"
  43.         "© 98 HAAGE&PARTNER Computer GmbH\n"
  44.         ))
  45.     (set #boardsoptstxt "Please choose your Board")
  46.     (set #noboards "No PPC-Board available")
  47.     (set #cyberstorm "CyberStormPPC A3000/A4000")
  48.     (set #developerboard "CyberStorm Developerboard")
  49.     (set #blizzard "Blizzard PPC A1200")
  50.  
  51.     (set #boardopts_help (cat "\n"
  52.         "The 'warpHW.library' is the hardware driver for the WarpUp-HAL. In the "
  53.         "directory 'hwdrivers' there are detailed documentation and examples sources "
  54.         "which allow everyone to write WarpUp drivers for new PPC hardware. For "
  55.         "every hardware there exists a library 'warpHW.library'. It is absolutely "
  56.         "necessary that the correct library is installed. This can be tested by "
  57.         "running the tool 'GetDriverInfo' (in the 'tools' directory) which prints "
  58.         "out, which hardware is represented by this driver."
  59.         ))
  60.  
  61.  
  62.     (set #envoptstxt "Please choose your settings!")
  63.  
  64.     (set #envdebug "Debug-Modus")
  65.     (set #envmemprot "PPC memory protection")
  66.     (set #envearlyterm "WShell compatible")
  67.     (set #envnoppc "PPC board not available")
  68.     (set #envhidewarning "Ignore warnings")
  69.     (set #envterminator "PPC.lib autoterminator")
  70.  
  71.     (set #envopts_help ( cat "\n"
  72.         "Settings\n\n"
  73.         "WarpOS knows some env-variables that can be used to make certain preferences. "
  74.         "The following are currently supported:\n\n"
  75.  
  76.         "Debug Modus - env:powerpc/debug\n\n"
  77.  
  78.         "May contain a number between 0 and 3. This specifies the debugging-level to "
  79.         "use when WarpOS boots. Should usually be left at 0 unless you are interested "
  80.         "in what happens during the booting process. The debugging-level can be changed "
  81.         "during operation by using the 'setdb' tool.\n\n"
  82.  
  83.         "PPC memory protection - env:powerpc/memprot\n\n"
  84.  
  85.         "Can be either 0 or 1. If it is set to 1, the memory-protection facilities of "
  86.         "WarpOS are switched on, otherwise off. If low-memory situations occur it can "
  87.         "help to switch off memory protection.\n\n"
  88.  
  89.         "PPC board not available - env:powerpc/noPPC\n\n"
  90.  
  91.         "This variable must be set, if the powerpc.library V8+ is installed on a "
  92.         "Non-PPC system. Afterwards all demos which also run without PPC (but which "
  93.         "try to open the powerpc.library) should run. If the variable is not set, "
  94.         "then the library crashes at initialization.\n\n"
  95.  
  96.         "WShell compatible - env:powerpc/earlyterm\n\n"
  97.  
  98.         "If this variable is not set, then problems can occur in conjunction with "
  99.         "programs like WShell. In this case the variable should be set. Afterwards, "
  100.         "the tools 'stackppc' and 'changemmu' can NOT be used anymore. The PPC stack "
  101.         "can be set using the stack command (the PPC stack gets about double the "
  102.         "size of the 68K stack of the shell).\n\n"
  103.  
  104.         "PPC.lib autoterminator - env:powerpc/Terminator\n\n"
  105.  
  106.         "If this variable is set to 1, then it's possible to launch WarpOS even if "
  107.         "the ppc.library is active. WarpOS tries then to remove the ppc.library and "
  108.         "related resources from the operating system. Of course it is still not "
  109.         "possible to use both ppc.library and WarpOS at the same time.\n\n"
  110.  
  111.         "Ignore warnings - env:powerpc/HideWarning\n\n"
  112.  
  113.         "If this variable is set to 1, the appearance of the requesters, which come "
  114.         "up in conjunction with ppc.library Warning, is avoided. "
  115.           ))
  116.  
  117.     (set #stormc_install_powerpclib "Copy libraries to Libs:")
  118.     (set #stormc_install_powerpclib_help "You need this library for using WarpOS")
  119.  
  120.     (set #versoptstxt "Do you want to install WarpOS V14 or the compatible V7?")
  121.     (set #warpos "WarpOS V14")
  122.     (set #s-lib "compatible version 7")
  123.     (set #boardsopt-help (cat "\n"
  124.         "Very important: As soon as WarpOS has been booted, absolutely NO PPC-programs "
  125.         "that are present in ELF-format will run. If compatibility with ELF-programs is "
  126.         "desired, the powerpc.library version 7 must be installed - after that, "
  127.         "ELF-programs as well as programs using the extended hunk-format will run. The "
  128.         "price you have to pay for this is a miserable performance when "
  129.         "context-switches between the CPUs occur. Furthermore, most of the features of "
  130.         "WarpOS will not be usable (version 7 is not an operating system in its own "
  131.         "right)."
  132.         ))
  133.  
  134.     (set #gfxopts "Is one of the both gfx cards CVisionPPC or BVisonPPC installed in your amiga?")
  135.     (set #cvppctxt "CyberVisionPPC")
  136.     (set #bvppctxt "BlizzardVisionPPC")
  137.     (set #othergfx "Other gfx card")
  138.     (set #nogfx "No gfx card")
  139.     (set #stormc_install_mcpatch "Install patch again ramlib errors.")
  140.  
  141.     (set #endsuccess "\n\nInstallation successfull")
  142.  
  143. (if (= @language "deutsch") (
  144.  
  145.  
  146.     (set #yeskey "Ja")
  147.     (set #nokey "Nein")
  148.  
  149.     (set #wrongos "\n Sorry, dieses Paket benötigt mind. OS2.04.\n")
  150.  
  151.     (set #wrongcpu "\n Sorry, das StormC-Paket setzt eine 68020 CPU voraus!\n")
  152.  
  153.     (set #welcome (cat "\n\nWillkommen bei der Installation des neuen\n"
  154.         "PowerPC nativen Exec Kernels WarpUP-WarpOS.\n\n"
  155.         ""#warpup-version " vom "#warpup-date"\n\n"
  156.         "Dieses Skript kopiert die verschiedenen\n"
  157.         "Bibliotheken, aus denen sich WarpUP-WarpOS\n"
  158.         "zusammensetzt auf Ihre Festplatte.\n\n"
  159.         "© 98 HAAGE&PARTNER Computer GmbH\n"
  160.         ))
  161.  
  162.     (set #boardsoptstxt "Bitte Boardtyp auswaehlen")
  163.     (set #noboards "Kein PPC-Board vorhanden")
  164.     (set #cyberstorm "CyberStormPPC A3000/A4000")
  165.     (set #developerboard "CyberStorm Developerboard")
  166.     (set #blizzard "Blizzard PPC A1200")
  167.  
  168.     (set #boardopts_help (cat "\n"
  169.         "Wählen Sie bitte das entsprechende, in Ihrem Amiga eingebaute PowerPC-Board aus. "
  170.         "Wenn Sie noch ueber kein Board verfuegen, wählen Sie einfach \"Kein PPC-Board vorhanden\". "
  171.         "Sie könenn dann dennoch die beigefuegten Demos ablaufen lassen.\n\n"
  172.         "Die 'warpHW.library' ist der Hardware-Treiber fuer den WarpUp-HAL. Im "
  173.         "Verzeichnis 'hwdrivers' befindet sich eine ausfuehrliche Dokumentation und "
  174.         "Beispiel-Sourcen, welche es jedermann erlauben, WarpUp-Treiber fuer neue "
  175.         "PPC-Hardware zu entwickeln. Fuer jede Hardware gibt es eine warpHW.library. "
  176.         "Es muss natuerlich die korrekte Version installiert sein. Dies kann man "
  177.         "ueberpruefen, indem man das Programm 'GetDriverInfo' (im 'tools'-Verzeichnis) "
  178.         "laufen laesst, welches in der Shell ausgibt, welche Hardware der Treiber "
  179.         "repraesentiert."
  180.         ))
  181.  
  182.  
  183.     (set #envoptstxt "Bitte wählen Sie Ihre Einstellung!")
  184.  
  185.     (set #envdebug "Debug-Modus")
  186.     (set #envmemprot "PPC-Speicherschutz")
  187.     (set #envearlyterm "WShell-Kompatibel")
  188.     (set #envnoppc "PPC-Board ausgebaut")
  189.     (set #envhidewarning "Warnungen ignorieren")
  190.     (set #envterminator "PPC.lib Autoterminator")
  191.  
  192.     (set #envopts_help ( cat "\n"
  193.           "Voreinstellungen\n\n"
  194.           "WarpOS kennt einige Env-Variablen, womit gewisse Voreinstellungen gemacht "
  195.           "werden können. Zur Zeit sind folgende unterstützt:\n\n"
  196.  
  197.           "Debug-Modus - env:powerpc/debug\n\n"
  198.  
  199.           "Kann eine Ziffer zwischen 0 und 3 beinhalten. Damit wird der Debugging-Level "
  200.           "beim Aufstarten von WarpOS festgelegt. Sollte normalerweise auf 0 belassen "
  201.           "werden, ausser jemand interessiert sich für die Vorgänge beim Bootvorgang. "
  202.           "Der Debugging-Level kann nachträglich mit dem Tool-Programm 'setdb' eingestellt "
  203.           "werden.\n\n"
  204.  
  205.           "PPC-Speicherschutz - env:powerpc/memprot\n\n"
  206.  
  207.           "Kann entweder 0 oder 1 sein. Wenn es auf 1 gesetzt ist, sind die Speicher-"
  208.           "schutzmöglichkeiten von WarpOS eingeschaltet, ansonsten ausgeschaltet. Wenn "
  209.           "eventuell Speicherplatzprobleme auftauchen, kann es helfen, den Speicherschutz "
  210.           "zu deaktivieren.\n\n"
  211.  
  212.           "PPC-Board ausgebaut - env:powerpc/noPPC\n\n"
  213.  
  214.           "Diese Variable muss gesetzt sein, wenn die powerpc.library V8+ auf einem "
  215.           "Nicht-PPC-System installiert wird. Danach funktionieren alle Demos, welche "
  216.           "auch ohne PPC laufen, aber die powerpc.library zu öffnen versuchen. Ist "
  217.           "die Variable dann nicht gesetzt, stürzt die Library in der Initialisierung "
  218.           "ab.\n\n"
  219.  
  220.           "WShell-Kompatibilität - env:powerpc/earlyterm\n\n"
  221.  
  222.           "Wenn diese Variable nicht gesetzt ist, kann es im Zusammenhang mit Programmen "
  223.           "wie der WShell zu grossen Problemen kommen, in diesem Fall sollte diese "
  224.           "Variable gesetzt werden. Dann können aber die Tool-Programme 'stackppc' und "
  225.           "'changemmu' nicht mehr benützt werden. Der PPC-Stack kann dann aber mit dem "
  226.           "Stack-Befehl gesetzt werden (Der PPC-Stack ist etwa doppelt so gross wie der "
  227.           "68K-Stack der Shell).\n\n"
  228.  
  229.           "PPC.lib Autoterminator - env:powerpc/Terminator\n\n"
  230.  
  231.           "Wenn diese Variable auf 1 gesetzt ist, so wird die Moeglichkeit geschaffen, "
  232.           "WarpOS hochzufahren, auch wenn die ppc.library aktiviert ist. Zu dem Zweck "
  233.           "wird versucht, die ppc.library und verwandte Resourcen aus dem Betriebssystem "
  234.           "zu entfernen. Natuerlich koennen bei laufendem WarpOS dann immer noch keine "
  235.           "ppc.library-Applikationen benuetzt werden.\n\n"
  236.  
  237.           "Warnungen ignorieren - env:powerpc/HideWarning\n\n"
  238.  
  239.           "Wenn diese Variable auf 1 gesetzt ist, so wird das Erscheinen der Requester "
  240.           "verhindert, welche im Zusammenhang mit der ppc.library erscheinen und dem "
  241.           "User mitteilen, dass WarpOS nicht so ohne weiteres hochfahren kann."
  242.           ))
  243.  
  244.     (set #stormc_install_powerpclib "Kopiere die Bibliotheken nach Libs:")
  245.     (set #stormc_install_powerpclib_help "Die Bibliothek wird zwangsläufig zum Betrieb benoetigt.")
  246.  
  247.     (set #versoptstxt "Möchten Sie WarpOS V14 oder die kompatible V7 installieren")
  248.     (set #warpos "WarpOS V14")
  249.     (set #s-lib "Kompatible Version 7")
  250.     (set #boardsopt-help (cat "\n"
  251.         "Sehr wichtig: Sobald WarpOS hochgefahren wurde, laufen absolut KEINE "
  252.         "PPC-Programme, die im ELF-Format vorliegen. Wenn unbedingt Kompatibilität "
  253.         "zu ELF-Programmen erwünscht ist, muss die powerpc.library Version 7 "
  254.         "installiert werden, wonach sowohl ELF-Programme wie auch Programme im "
  255.         "erweiterten Hunkformat laufen. Der Preis dafür ist schlechte Performance "
  256.         "bei Kontextwechseln zwischen den CPUs. Zudem sind die meisten Features des "
  257.         "WarpOS nicht zugänglich (Die Version V7 ist kein eigenständiges Betriebs-"
  258.         "system)."
  259.         ))
  260.  
  261.     (set #gfxoptstxt "Haben Sie eine der beiden Grafikkarten CVisonPPC oder BVisonPPC in Ihrem Amiga installiert?")
  262.     (set #cvppctxt "CyberVisionPPC")
  263.     (set #bvppctxt "BlizzardVisionPPC")
  264.     (set #othergfx "Andere Grafikkarte")
  265.     (set #nogfx "Keine Grafikkarte")
  266.     (set #stormc_install_mcpatch "Installiere Patch zur Vermeidung eines ramlib fehlers.")
  267.  
  268.     (set #endsuccess "\n\nInstallation erfolgreich beendet")
  269. ))
  270.  
  271. (if (= @language "italiano") (
  272.  
  273.  
  274.     (set #yeskey "Si")
  275.     (set #nokey "No")
  276.  
  277.     (set #wrongos "\n Spiacente, é necessario OS2.04 or superiore.\n")
  278.  
  279.     (set #wrongcpu "\n Spiacente, é necessario al minimo una CPU 68020 o superiore per usare WarpOS\n")
  280.  
  281.     (set #welcome (cat "\n\n"
  282.         "Benvenuto all'installazione del nuovo\n\n"
  283.         "kernel nativo per PowerPC WarpUP-WarpOS.\n\n"
  284.         ""#warpup-version " del "#warpup-date"\n\n"
  285.         "Questo script copia le librerie WarpUP\n"
  286.         "sul tuo harddisk!\n\n"
  287.         "© 98 HAAGE&PARTNER Computer GmbH\n"
  288.         ))
  289.     (set #boardsoptstxt "Scegli la tua scheda:")
  290.     (set #noboards "Nessuna scheda PPC")
  291.     (set #cyberstorm "CyberStormPPC A3000/A4000")
  292.     (set #developerboard "CyberStorm Developerboard")
  293.     (set #blizzard "Blizzard PPC A1200")
  294.  
  295.     (set #boardopts_help (cat "\n"
  296.         "La 'warpHW.library' é il driver hardware per il WarpUp-HAL. Nella "
  297.         "directory 'hwdrivers' c'è tutta la documentazione dettagliata e dei "
  298.         "sorgenti di esempio che consentono a chiunque di scrivere dei driver WarpUp "
  299.         "per del nuovo hardware PPC. "
  300.         "Per ogni hardware esistente c'è una libreria 'warpHW.library'. E` assolutamente "
  301.         "necessario che sia installata la libreria corretta. Ciò può essere controllato "
  302.         "tramite il comando 'GetDriverInfo' (che si trova nella directory 'tools' ) che "
  303.         "stampa quale hardware é rappresentato da questo driver."
  304.         ))
  305.  
  306.     (set #envoptstxt "Scegli le tue impostazioni!")
  307.  
  308.     (set #envdebug "Livello di Debug")
  309.     (set #envmemprot "Protezione di memoria sotto PPC.")
  310.     (set #envearlyterm "Compatibilità con WShell")
  311.     (set #envnoppc "Scheda PPC non disponibile")
  312.     (set #envhidewarning "Ignorare i 'warnings'")
  313.     (set #envterminator "Autonuclearizzazione PPC.library")
  314.  
  315.     (set #envopts_help ( cat "\n"
  316.         "Impostazioni:\n\n"
  317.         "WarpOS usa alcune variabili di ambiente (env-variables) che possono essere usate "
  318.         "per cabiare alcune opzioni. "
  319.         "Le opzioni seguenti sono supportate al momento attuale:\n\n"
  320.  
  321.         "Livello di Debug - env:powerpc/debug\n\n"
  322.  
  323.         "Può contenere un numero compreso tra 0 e 3. Questo specifica il livello di debugging "
  324.         "da usare quando WarpOS parte. Di solito andrebbe lasciato a 0 a meno che tu sia "
  325.         "interessato in ciò che accade durante il processo di boot. Il livello di debugging "
  326.         "può essere cambiato durante l'utilizzo normale tramite il comando 'setdb'.\n\n"
  327.  
  328.         "Protezione di memoria sotto PPC. - env:powerpc/memprot\n\n"
  329.  
  330.         "Può essere o 0 oppure 1. Se imposatao a 1, le risorse di protezione della memoria "
  331.         "di WarpOS saranno attive, altrimenti no. Se capitano delle situazioni di poca "
  332.         "memoria, può essere d'aiuto disattivare la protezione della memoria.\n\n"
  333.  
  334.         "Scheda PPC non disponibile - env:powerpc/noPPC\n\n"
  335.  
  336.         "Queata variabile DEVE essere impostata, se la powerpc.library V8+ è installata "
  337.         "in un sistema senza PPC. Dopodiché tutti i demo che possono anche girare senza "
  338.         "PPC (ma che provano ad aprire la powerpc.library) dovrebbero girare. Se la variabile "
  339.         "non é impostata allora la libreria si pianta allegramente all'inizializzazione.\n\n"
  340.  
  341.         "Compatibilità con WShell - env:powerpc/earlyterm\n\n"
  342.  
  343.         "Se questa variable non é impostata, allora possono esserci dei problemi con "
  344.         "programmi come WShell. In questo caso, la variabile deve venire impostata. "
  345.         "Dopodiché, i programmi 'stackppc' e 'changemmu' NON possono essere più usati. Lo "
  346.         "stack PPC può essere impostato usando il comando standard 'stack' (lo stack PPC "
  347.         "avrà una dimensione doppia dello stack 68K della shell).\n\n"
  348.  
  349.         "Autoterminazione PPC.library - env:powerpc/Terminator\n\n"
  350.  
  351.         "Se questa variabile é impostata a 1, allora é possibile launciare WarpOS anche "
  352.         "se la ppc.library é attiva. WarpOS proverà quindi a rimuovere la ppc.library e "
  353.         "le relative risorse dal sistema operativo. Naturalmente non é ancora possibile "
  354.         "usare sia la ppc.library che WarpOS allo stesso tempo. "
  355.         "I possessori di BlizzardPPC DEVONO impostare a 1 questa variabile per poter usare "
  356.         "WarpOS.\n\n"
  357.  
  358.         "Ignorare i 'warnings' - env:powerpc/HideWarning\n\n"
  359.  
  360.         "Con questa variabile impostata a 1, l'apparizione dei requester, che "
  361.         "apparirebbero per l'avvertimento della rimozione della ppc.library, sarà evitata. "
  362.         "E' utile se si installa WarpOS in un sistema in contemporanea con la ppc.library."
  363.           ))
  364.  
  365.     (set #stormc_install_powerpclib "Copia delle librerie in Libs:")
  366.     (set #stormc_install_powerpclib_help "E' necessaria questa libreria per usare WarpOS")
  367.  
  368.     (set #versoptstxt "Vuoi installare WarpOS V14 o la versione compatibile V7?")
  369.     (set #warpos "WarpOS V14")
  370.     (set #s-lib "compatibile V7")
  371.     (set #boardsopt-help (cat "\n"
  372.         "NOTA BENE: Dal momento in cui WarpOS viene lanciato, NESSUN programma PPC "
  373.         "che é presente in formato ELF funzionerà più. Se si desidera la compatibilità "
  374.         "con programmi ELF, deve venire installata la powerpc.library versione 7 - dopo, "
  375.         "ciò, funzioneranno sia i programmi ELF che quelli che usano il formato di hunk "
  376.         "esteso (WarpOS). Il prezzo che dovrai pagare per questo é una prestazione "
  377.         "miserevole durante i context-switches tra CPU. Oltretutto, molte delle capacità "
  378.         "di WarpOS non saranno utilizzabili (la versione 7 NON è un sistema operativo vero "
  379.         "e proprio)."
  380.         ))
  381.  
  382.     (set #gfxopts "Is one of the both gfx cards CVisionPPC or BVisonPPC installed in your amiga?")
  383.     (set #cvppctxt "CyberVisionPPC")
  384.     (set #bvppctxt "BlizzardVisionPPC")
  385.     (set #othergfx "Other gfx card")
  386.     (set #nogfx "No gfx card")
  387.     (set #stormc_install_mcpatch "Install patch again ramlib errors.")
  388.  
  389.     (set #endsuccess "\n\nL'installazione ha avuto successo. Buon divertimento.")
  390. ))
  391.  
  392. (set #os-version (/ (getversion) 65536))
  393. (set #os-13 (< #os-version 36))
  394. (set #os-20 (>= #os-version 36))
  395. (set #os-21 (>= #os-version 38))
  396.  
  397. ; ------------ Die Pfadnamen der einzelnen Quell-Dateien ----------------
  398.  
  399. (set #ppcv7 (tackon (pathonly @icon) "WarpUP-WarpOS/V7/PowerPC.library"))
  400. (set #dummyelf (tackon (pathonly @icon) "WarpUP-WarpOS/V7/dummy.elf"))
  401. (set #hw1 (tackon (pathonly @icon) "WarpUP-WarpOS/hwdrivers/CyberStormPPC/warpHW.library"))
  402. (set #hw2 (tackon (pathonly @icon) "WarpUP-WarpOS/hwdrivers/P5Developerboard/warpHW.library"))
  403. (set #hw3 (tackon (pathonly @icon) "WarpUP-WarpOS/hwdrivers/BlizzardPPC/warpHW.library"))
  404. (set #ppcv14 (tackon (pathonly @icon) "WarpUP-WarpOS/libs/PowerPC.library"))
  405. (set #warpV14 (tackon (pathonly @icon) "WarpUP-WarpOS/libs/Warp.library"))
  406. (set #ramlibpatch (tackon (pathonly @icon) "WarpUP-WarpOS/Tools/MCPRamlibPatch"))
  407. ;=====================================================================================
  408. ; // Beginn der Installation
  409. ;=====================================================================================
  410.  
  411. ; // wird min. unter 2.04 installiert ?
  412.  
  413. (if (= #os-13 1)
  414.  
  415.     (
  416.         (message #wrongos)
  417.  
  418.         (exit (quiet))
  419.     )
  420. )
  421.  
  422. (if (patmatch "68000|68010" (database "cpu"))
  423.     (
  424.         (message #wrongcpu)
  425.         (exit (quiet))
  426.     )
  427. )
  428.  
  429. (onerror (
  430.     (if (> @ioerr 0)
  431.         (message (cat "\n ERROR CODE: " @ioerr "\n\n"))
  432.     )
  433. ))
  434.  
  435. ; // Eine kleine Änderung to enable das script zu laufen (deutsch??).
  436.  
  437. (run "ASSIGN ENV: WarpUP-WarpOS/ENV/ ADD")
  438.  
  439. ; // Eine kleine Einleitung, gefolgt vom Startbild des Installers.
  440.  
  441.  
  442. (message #welcome)
  443.  
  444. ;(welcome)
  445.  
  446. (complete 2)
  447.  
  448. ; // Alte Version prüfen und entsprechende Abfrage ausgeben!--------------------------------------------
  449.  
  450. (set #folder "SYS:")
  451.  
  452. ; Libs auf die Platte kopieren
  453.  
  454. (complete 10)
  455.  
  456. (set #noppc (getenv "PowerPC/noppc"))
  457.  
  458. (set #boardopts
  459.     (askchoice
  460.         (prompt #boardoptstxt)
  461.         (help #boardopts_help)
  462.         (choices #noboards #cyberstorm #developerboard #blizzard)
  463.         (default 1)
  464.     )
  465. )
  466.  
  467. (if (= #boardopts 0)
  468.     ((set #noppc 1))
  469. )
  470.  
  471. (set destenvarc (tackon "envarc:" "PowerPC"))
  472. (set destenv (tackon "env:" "PowerPC"))
  473. (if                                         ; // Verzeichnis für Envargumente erzeugen
  474.    (= (exists destenvarc) 0)
  475.     (
  476.       (makedir destenvarc (infos))
  477.       (makedir destenv (infos))
  478.  
  479.       (set #alertfile "CON:0/20/400/200/WarpOS - System Message/AUTO/CLOSE/WAIT/INACTIVE")
  480.  
  481.       (run "setenv PowerPC/alertfile" #alertfile)
  482.       (run "copy ENV:PowerPC/alertfile ENVARC:PowerPC")
  483.  
  484.       (set #crashfile "CON:0/20/400/300/WarpOS - PowerPC Exception/AUTO/CLOSE/WAIT/INACTIVE")
  485.  
  486.       (run "setenv PowerPC/crashfile" #crashfile)
  487.       (run "copy ENV:PowerPC/crashfile ENVARC:PowerPC")
  488.  
  489.       (run "setenv PowerPC/gfxaddr" 0)
  490.       (run "copy ENV:PowerPC/gfxaddr ENVARC:PowerPC")
  491.  
  492.       (run "setenv PowerPC/force" 0)
  493.       (run "copy ENV:PowerPC/force ENVARC:PowerPC")
  494.  
  495.       (set #debug 0)
  496.       (set #gfxaddr 0)
  497.       (set #memprot 1)
  498.       (set #earlyterm 0)
  499.       (set #hidewarning 0)
  500.       (set #terminator 2)
  501.       (set #force 0)
  502.     )
  503.     (
  504.       (set #alertfile (getenv "PowerPC/alertfile"))
  505.       (set #crashfile (getenv "PowerPC/crashfile"))
  506.       (set #debug (getenv "PowerPC/debug"))
  507.       (set #gfxaddr (getenv "PowerPC/gfxaddr"))
  508.       (set #memprot (getenv "PowerPC/memprot"))
  509.       (set #earlyterm (getenv "PowerPC/earlyterm"))
  510.       (set #hidewarning (getenv "PowerPC/hidewarning"))
  511.       (set #terminator (getenv "PowerPC/terminator"))
  512.       (set #force (getenv "PowerPC/force"))
  513.     )
  514. )
  515.  
  516. (set #envopts 0)
  517.  
  518. (if (= #debug 1)
  519.    (
  520.    (set #envopts (bitor #envopts 1))
  521.    )
  522. )
  523.  
  524. (if (= #memprot 1)
  525.    (
  526.    (set #envopts (bitor #envopts 2))
  527.    )
  528. )
  529.  
  530. (if (= #earlyterm 1)
  531.    (
  532.    (set #envopts (bitor #envopts 4))
  533.    )
  534. )
  535.  
  536. (if (= #noppc 1)
  537.    (
  538.    (set #envopts (bitor #envopts 8))
  539.    )
  540. )
  541.  
  542. (if (= #hidewarning 1)
  543.    (
  544.    (set #envopts (bitor #envopts 16))
  545.    )
  546. )
  547.  
  548. (if (= #terminator 1)
  549.    (
  550.    (set #envopts (bitor #envopts 32))
  551.    )
  552. )
  553.  
  554. (if (= #terminator 2)
  555.    (
  556.    (set #envopts (bitor #envopts 32))
  557.    )
  558. )
  559.  
  560. ;==================================================================================
  561. (complete 40)
  562.  
  563. (set #envopts
  564.     (askoptions
  565.         (prompt #envoptstxt)
  566.         (help #envopts_help)
  567.         (choices #envdebug #envmemprot #envearlyterm #envnoppc #envhidewarning #envterminator)
  568.         (default #envopts)
  569.     )
  570. )
  571.  
  572. (complete 50)
  573.  
  574. (if (= 1 (bitand #envopts 1))
  575.     (
  576.     (set #debug 1)
  577.     )
  578.     (
  579.     (set #debug 0)
  580.     )
  581. )
  582.  
  583. (if (= 2 (bitand #envopts 2))
  584.     (
  585.     (set #memprot 1)
  586.     )
  587.     (
  588.     (set #memprot 0)
  589.     )
  590. )
  591.  
  592. (if (= 4 (bitand #envopts 4))
  593.     (
  594.     (set #earlyterm 1)
  595.     )
  596.     (
  597.     (set #earlyterm 0)
  598.     )
  599. )
  600.  
  601. (if (= 8 (bitand #envopts 8))
  602.     (
  603.     (set #noppc 1)
  604.     )
  605.     (
  606.     (set #noppc 0)
  607.     )
  608. )
  609.  
  610. (if (= 16 (bitand #envopts 16))
  611.     (
  612.     (set #hidewarning 1)
  613.     )
  614.     (
  615.     (set #hidewarning 0)
  616.     )
  617. )
  618.  
  619. (if (= 32 (bitand #envopts 32))
  620.     (
  621.     (set #terminator 2)
  622.     )
  623.     (
  624.     (set #terminator 0)
  625.     )
  626. )
  627.  
  628. (run "setenv PowerPC/debug" #debug)
  629. (run "copy ENV:PowerPC/debug ENVARC:PowerPC")
  630.  
  631. (run "setenv PowerPC/memprot" #memprot)
  632. (run "copy ENV:PowerPC/memprot ENVARC:PowerPC")
  633.  
  634. (run "setenv PowerPC/earlyterm" #earlyterm)
  635. (run "copy ENV:PowerPC/earlyterm ENVARC:PowerPC")
  636.  
  637. (run "setenv PowerPC/noppc" #noppc)
  638. (run "copy ENV:PowerPC/noppc ENVARC:PowerPC")
  639.  
  640. (run "setenv PowerPC/hidewarning" #hidewarning)
  641. (run "copy ENV:PowerPC/hidewarning ENVARC:PowerPC")
  642.  
  643. (run "setenv PowerPC/terminator" #terminator)
  644. (run "copy ENV:PowerPC/terminator ENVARC:PowerPC")
  645.  
  646. (complete 70)
  647.  
  648. (set #gfxopts
  649.     (askchoice
  650.         (prompt #gfxoptstxt)
  651.         (help #boardopts_help)
  652.         (choices #cvppctxt #bvppctxt #othergfx #nogfx)
  653.         (default 2)
  654.     )
  655. )
  656.  
  657. (set #gfxaddr 0)
  658. (set #force 0)
  659.  
  660. (if (= #gfxopts 0) ;CVPPC
  661.     (
  662.     (set #gfxaddr "$e0000000")
  663.     (set #force 1)
  664.     )
  665. )
  666.  
  667. (if (= #gfxopts 1) ;BVPPC
  668.     (
  669.     (set #gfxaddr "$e0000000")
  670.     (set #force 1)
  671.     )
  672. )
  673.  
  674. (run "setenv PowerPC/gfxaddr" #gfxaddr)
  675. (run "copy ENV:PowerPC/gfxaddr ENVARC:PowerPC")
  676.  
  677. (run "setenv PowerPC/force" #force)
  678. (run "copy ENV:PowerPC/force ENVARC:PowerPC")
  679.  
  680. (complete 75)
  681.  
  682. (set #versopts
  683.     (askchoice
  684.         (prompt #versoptstxt)
  685.         (help #boardopts_help)
  686.         (choices #warpos #s-lib)
  687.         (default 0)
  688.     )
  689. )
  690.  
  691. (if (= #versopts 1)
  692.     (
  693.        (copylib
  694.            (prompt  #stormc_install_powerpclib)
  695.            (help    #stormc_install_powerpclib_help)
  696.            (source  #ppcv7)
  697.            (dest    "libs:")
  698.            (confirm)
  699.        )
  700.  
  701.        (complete 80)
  702.  
  703.        ; Dummy Elf kopieren
  704.  
  705.        (copyfiles
  706.            (prompt  #stormc_install_powerpclib)
  707.            (help    #stormc_install_powerpclib_help)
  708.            (dest "S:")
  709.            (source #dummyelf)
  710.        )
  711.     )
  712.     (     ; WarpOS installieren
  713.  
  714.        (if (= #boardopts 1)
  715.            ( (set #hwdriver #hw1)
  716.            ))
  717.  
  718.        (if (= #boardopts 2)
  719.            ( (set #hwdriver #hw2)
  720.            ))
  721.  
  722.        (if (= #boardopts 3)
  723.            ( (set #hwdriver #hw3)
  724.            ))
  725.  
  726.        (copyfiles
  727.            (prompt  #stormc_install_powerpclib)
  728.            (help    #stormc_install_powerpclib_help)
  729.            (source   #hwdriver)
  730.            (dest    "libs:")
  731. ;           (confirm)
  732.        )
  733.  
  734.       (complete 80)
  735.  
  736.        (copylib
  737.            (prompt  #stormc_install_powerpclib)
  738.            (help    #stormc_install_powerpclib_help)
  739.            (source  #ppcv14)
  740.            (dest    "libs:")
  741.            (confirm)
  742.        )
  743.  
  744.        (complete 90)
  745.  
  746.        (copylib
  747.            (prompt  #stormc_install_powerpclib)
  748.            (help    #stormc_install_powerpclib_help)
  749.            (source  #warpV14)
  750.            (dest    "libs:")
  751.            (confirm)
  752.        )
  753.  
  754.     )
  755. )
  756.  
  757. (copyfiles
  758.   (prompt  #stormc_install_mcpatch)
  759.   (help    #stormc_install_mcpatch)
  760.   (source  #ramlibpatch)
  761.   (dest    "C:")
  762. )
  763.  
  764. (complete 100)
  765.  
  766. (exit #endsuccess (quiet))
  767.